package com.ruoyi.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章列表对象 blog_article
 * 
 * @author 沉睡
 * @date 2024-08-05
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 分类id */
    @Excel(name = "分类id")
    private Long cateId;

    /** 缩略图 */
    @Excel(name = "缩略图")
    private String thumbnail;

    /** 标签 */
    @Excel(name = "标签")
    private String tag;

    /** 置顶标识 */
    @Excel(name = "置顶标识")
    private Long topFlag;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 摘要 */
    private String intro;

    /** 内容 */
    private String content;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long viewNums;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCateId(Long cateId) 
    {
        this.cateId = cateId;
    }

    public Long getCateId() 
    {
        return cateId;
    }
    public void setThumbnail(String thumbnail) 
    {
        this.thumbnail = thumbnail;
    }

    public String getThumbnail() 
    {
        return thumbnail;
    }
    public void setTag(String tag) 
    {
        this.tag = tag;
    }

    public String getTag() 
    {
        return tag;
    }
    public void setTopFlag(Long topFlag) 
    {
        this.topFlag = topFlag;
    }

    public Long getTopFlag() 
    {
        return topFlag;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro() 
    {
        return intro;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setViewNums(Long viewNums) 
    {
        this.viewNums = viewNums;
    }

    public Long getViewNums() 
    {
        return viewNums;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cateId", getCateId())
            .append("thumbnail", getThumbnail())
            .append("tag", getTag())
            .append("topFlag", getTopFlag())
            .append("title", getTitle())
            .append("intro", getIntro())
            .append("content", getContent())
            .append("viewNums", getViewNums())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
